namespace net_work.Attribute;

[AttributeUsage(AttributeTargets.Property)]
public sealed class ExcelColumnAttribute : System.Attribute
{
    public int Order { get; set; } = int.MaxValue; // 默认最大值，允许自动排序
    public string? Header { get; set; }

    public ExcelColumnAttribute()
    {
    }

    public ExcelColumnAttribute(int order)
    {
        Order = order;
    }

    public ExcelColumnAttribute(string? header)
    {
        Header = header;
    }
}